#-*- coding:utf-8 -*-

# if __name__ == '__main__':
#     print "hello,world"

'''
    getcwd 和 chdir 函数分别用于获得和改变当前工作目录.
'''


import os

# where are we?

cwd = os.getcwd()

print "1", cwd

# go down

os.chdir("samples")
print "2", os.getcwd()

#go back up
os.chdir(os.pardir)
print "3", os.getcwd()


